package com.kafka.sync2;

/**
 * @author xq
 * @Description: 配置文件属性
 * @date 2020/6/119:00
 */
public enum Config {

    NAME("name"),

    // 源kafka
    S_AUTH("s_auth"),
    S_KRB5_CONF("s_krb5Conf"),
    S_JAAS_CONF("s_jaasConf"),

    S_KAFKA_BROKE_URL("s_brokeUrl"),
    S_KAFKA_TOPIC("s_topic"),
    S_KAFKA_CONSUMER_GROUP("s_consumerGroup"),

    // 目标kafka
    T_AUTH("t_auth"),
    T_KRB5_CONF("t_krb5Conf"),
    T_JAAS_CONF("t_jaasConf"),
    T_KAFKA_BROKE_URL("t_brokeUrl"),
    T_KAFKA_TOPIC("t_topic"),

    FILE_BACKUP("file");

    private String pName;

    Config(String pName) {
        this.pName = pName;
    }

    public String value() {
        return pName;
    }

}
